package edu.sctu.practice.class02.renzhaoxu.assign02;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Rational {
    double number1;
    double number2;

    public Rational(double number1,double number2){

        this.number1 = number1;
        this.number2 = number2;

    }

    public double add(){

        double sum = number1 + number2;
        return sum;
    }


    public  double subtrac(){

        double differ = number1 - number2;
        return differ;
    }


    public  double multip(){

        double product = number1 * number2;
        return product;
    }


    public  double divide(){

        double quotient = number1/number2;
        return quotient;
    }
}
